package com.epam.training.generics.task1;

import java.util.Collection;

/**
 * 
 * @author bogdan
 *
 */
public class CopyToCollections {

	private CopyToCollections() {

	}

	/**
	 * Copy from one collection to other
	 * 
	 * @param a
	 * @param c
	 */
	public static <T> void fromArrayToCollection(T[] a, Collection<T> c) {
		for (int i = 0; i < a.length; i++) {
			c.add(a[i]);
		}
	}

}
